package org.brisling.sysman.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * Log entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name=ConstSysParam.MODULE_LOG)

@DynamicUpdate(true)
@DynamicInsert(true)
public class SysLogs extends BaseDomain implements BaseDomainInf
{
	
	
	//人员
	private Long userId;
	private String userName;
	
	//日志类型,：1、登录；2、保存；3、删除；4、异常
	private Integer logType;
	
	private String logTypeName;
	
	//操作执行状态：1、成功；2、失败
	private Integer operateStatus;
	
	private String operateStatusName;
	
	//物理地址
	private String mac;
	
	//ip地址
	private String ip;
	
	//对象类型
	private Integer objectType;
	
	//对象id
	private String objectId;
	
	//事件名称
	private String eventName;
	
	//事件记录
	private String eventRecord;

	//异常代码及明细
	private String exceptionCode;
	
	private String ExceptionDetail;
	
	public Long getUserId()
	{
		return this.userId;
	}

	public void setUserId(Long userId )
	{
		this.userId = userId;
	}

	
	public String getName()
	{
		return this.name;
	}

	public void setName(String name )
	{
		this.name = name;
	}
	

	
	public String getMac()
	{
		return this.mac;
	}

	public void setMac(String mac )
	{
		this.mac = mac;
	}

	
	public String getIp()
	{
		return this.ip;
	}

	public void setIp(String ip )
	{
		this.ip = ip;
	}

	
	public Integer getObjectType()
	{
		return this.objectType;
	}

	public void setObjectType(Integer objectType )
	{
		this.objectType = objectType;
	}

	
	public String getObjectId()
	{
		return this.objectId;
	}

	public void setObjectId(String objectId )
	{
		this.objectId = objectId;
	}

	
	public String getEventName()
	{
		return this.eventName;
	}

	public void setEventName(String eventName )
	{
		this.eventName = eventName;
	}

	
	public String getEventRecord()
	{
		return this.eventRecord;
	}

	public void setEventRecord(String eventRecord )
	{
		this.eventRecord = eventRecord;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getLogType() {
		return logType;
	}

	public void setLogType(Integer logType) {
		this.logType = logType;
	}
	
	

	public String getExceptionCode() {
		return exceptionCode;
	}

	public void setExceptionCode(String exceptionCode) {
		this.exceptionCode = exceptionCode;
	}

	public String getExceptionDetail() {
		return ExceptionDetail;
	}

	public void setExceptionDetail(String exceptionDetail) {
		ExceptionDetail = exceptionDetail;
	}

	public String getLogTypeName() {
		return logTypeName;
	}

	public void setLogTypeName(String logTypeName) {
		this.logTypeName = logTypeName;
	}

	public Integer getOperateStatus() {
		return operateStatus;
	}

	public void setOperateStatus(Integer operateStatus) {
		this.operateStatus = operateStatus;
	}

	public String getOperateStatusName() {
		return operateStatusName;
	}

	public void setOperateStatusName(String operateStatusName) {
		this.operateStatusName = operateStatusName;
	}
	

}